package com.project.order.feign;

import com.project.common.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("account")
public interface AccountFeign {

    @PutMapping("/account/deduct")
    RespResult deduct(@RequestParam("account") String account,@RequestParam("money") Double money);
}
